package com.ruoyi.lighting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lighting.mapper.RoomLightingMapper;
import com.ruoyi.lighting.domain.RoomLighting;
import com.ruoyi.lighting.service.IRoomLightingService;

/**
 * 房间采光管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class RoomLightingServiceImpl implements IRoomLightingService 
{
    @Autowired
    private RoomLightingMapper roomLightingMapper;

    /**
     * 查询房间采光管理
     * 
     * @param lightingId 房间采光管理主键
     * @return 房间采光管理
     */
    @Override
    public RoomLighting selectRoomLightingByLightingId(Long lightingId)
    {
        return roomLightingMapper.selectRoomLightingByLightingId(lightingId);
    }

    /**
     * 查询房间采光管理列表
     * 
     * @param roomLighting 房间采光管理
     * @return 房间采光管理
     */
    @Override
    public List<RoomLighting> selectRoomLightingList(RoomLighting roomLighting)
    {
        return roomLightingMapper.selectRoomLightingList(roomLighting);
    }

    /**
     * 新增房间采光管理
     * 
     * @param roomLighting 房间采光管理
     * @return 结果
     */
    @Override
    public int insertRoomLighting(RoomLighting roomLighting)
    {
        return roomLightingMapper.insertRoomLighting(roomLighting);
    }

    /**
     * 修改房间采光管理
     * 
     * @param roomLighting 房间采光管理
     * @return 结果
     */
    @Override
    public int updateRoomLighting(RoomLighting roomLighting)
    {
        return roomLightingMapper.updateRoomLighting(roomLighting);
    }

    /**
     * 批量删除房间采光管理
     * 
     * @param lightingIds 需要删除的房间采光管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomLightingByLightingIds(Long[] lightingIds)
    {
        return roomLightingMapper.deleteRoomLightingByLightingIds(lightingIds);
    }

    /**
     * 删除房间采光管理信息
     * 
     * @param lightingId 房间采光管理主键
     * @return 结果
     */
    @Override
    public int deleteRoomLightingByLightingId(Long lightingId)
    {
        return roomLightingMapper.deleteRoomLightingByLightingId(lightingId);
    }
}
